<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/page/share/taglib.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>预约挂号</title>
    <link rel="stylesheet" rev="stylesheet" href="<%=request.getContextPath() %>/css/style.css" type="text/css" media="all" />
	<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/page/patient/js/threeSelectData.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/page/patient/js/saveOrUpdate.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/page/patient/js/registerUpdate.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/page/patient/js/registerDelete.js"></script>
	<style type="text/css">
	<!--
	.atten {font-size:12px;font-weight:normal;color:#F00;}
	.STYLE1 {color: #000066}
	-->
	</style>
</head>

<body class="ContentBody">
  <form action="<%=request.getContextPath() %>/page/patient/appointmentRegister.jsp" target="mainFrame" method="post" enctype="multipart/form-data" name="form" target="sypost" >
<div class="MainDiv">
	<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  		<tr><th class="tablestyle_title" >预约挂号</th>
  		</tr>
  		<tr>
    		<td class="CPanel">
				<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
					<TR>
						<TD width="100%"><fieldset style="height:100%;">
							<legend>挂号基本信息</legend>
					  		<table border="0" cellpadding="2" cellspacing="1" style="width:100%">
					  			<tr>
					    			<td nowrap align="right" width="15%">预约信息:</td>
					    			<td width="75%">
					    			    <select name="clinic_Id" title="室" id="clinic_Id"  class="required" >
			                              <option value="" selected="selected" ></option>
			                                <c:forEach items="${clinicList}" var="clinic">
			                                   <option value="${clinic.clinic_Id}" >${clinic.clinic_Name}</option>
			                               </c:forEach>
				                         </select> 室
									     <select name="doctor_Id" title="医生" id="doctor_Id" class="required">
									     
									     </select> 医生 
									     <select name="register_DateTime" title="时间" id="register_DateTime" class="required">
									     
									     </select>时间	
					    			</td>			        	
					    			
					    		</tr>
								<tr>
					    			<td nowrap align="right" width="15%">挂号状态:</td>
					    			<td width="35%">
					    			<select name="register_Status" id="register_Status" class="required">
			                            <option value=""></option>
			                            <option value="1">初诊</option>
			                            <option value="2">复诊</option>
			                        </select> 
				                         
                                    </td>	
								</tr>
								<tr>	
									<td nowrap align="right" width="15%">症状描述:</td>
									<td width="40%"><textarea name="register_Sysptom" class="text" style="width:300px" size="40" id="register_Sysptom"></textarea></td>
							  
				        		</tr>
								<tr>	
									<td nowrap align="right" width="15%">备注:</td>
									<td width="50%"><textarea name="register_Remark" class="text" style="width:300px" size="40" id="register_Remark"></textarea></td>
									
				        		</tr>
					
								<tr> 	
									<td nowrap align="right" >
									    <div id="save">
											<input type="submit" value="保存" id="saveOrUpdate"/>
									    </div>
						                <div id="update" style="display:none;">
										     <input type="submit" value="保存" id="saveOrUpdate"/>
									    </div>
									</td>
								</tr>
					 		</table>
			  				<br />
							</fieldset>			
						</TD>
					</TR>	
				</TABLE>
		  </td>
  		</tr>
		
	
		
		<!--  
			第二块模板 开始
		    **********************************************************************************
			***********************************************************************************
		-->
		
	
		<tr>
    		<td class="CPanel">
				<table border="0" cellpadding="0" cellspacing="0" style="width:100%">
					<TR>
						<TD width="100%">
						<fieldset style="height:100%;">
							<legend>挂号记录</legend>
					  		<table border="0" cellpadding="2" cellspacing="1" style="width:100%">
                              <tr>
                                <td width="80%"></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td height="26">
                                <table width="100%" border="0" cellpadding="2" cellspacing="1" class="CContent" >
                                    <tr class="CTitle" height="20" align="center">
                                      <td colspan="5" align="center">挂号信息列表</td>
                                    </tr>
                                    <tr align="center" class="TablePanel">
                                      <td width="10%" nowrap>病人姓名</td>
                                      <td width="45%">预约信息</td>
                                      <td width="25%">症状描述</td>
                                      <td width="10%">就诊状态</td>
                                      <td width="10%">操作</td>
                                    </tr>
                                    <tr >
                                     <c:forEach var="register" items="${registerList}">
                                          <tr id="${register.register_Id}" align="center">
			                                <td>${register.patient.patient_Name}</td>
			                                <td class="td1">${register.clinic.clinic_Name} ${register.doctor.doctor_Name} ${register.register_DateTime }</td>
			                                <td class="td2">${register.register_Sysptom}</td>
			                                <td class="td3">${register.register_Status}</td>     
                                            <td>|<a href="#" name="${register.register_Id}" class="update">修改</a>|<a href="<%=request.getContextPath() %>/page/patient/appointmentRegister.jsp" name="${register.register_Id}" class="delete">删除</a>|</td>
                                          </tr>
                                      </c:forEach>
                         
                                </table>
                                </td>
                              </tr>
                   
                            </table> 
					  		<br />
						</fieldset>						
						
				
						
				</TABLE>
		  </td>
  		</tr>	
  	</TABLE>
	
</div>
</form>
</body>
</html>
